package com.cap.bts.crmdp.dealer.meal.domain;

import java.io.Serializable;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.cap.bts.framework.common.domain.BaseDomain;

/**
 * 套餐信息model
 * 
 * @author liZhiYong
 * @version $Id: MealModel.java, v 0.1 2015-9-14 下午2:44:59 1111 Exp $
 */
@Entity
@Table(name = "TM_CRM_PACKAGE_DEFINITION")
@AttributeOverrides({
		@AttributeOverride(name = "createBy", column = @Column(name = "CREATE_BY")),
		@AttributeOverride(name = "createDate", column = @Column(name = "CREATE_DATE", nullable = false)),
		@AttributeOverride(name = "lastUpdateBy", column = @Column(name = "LAST_UPDATE_BY")),
		@AttributeOverride(name = "lastUpdateDate", column = @Column(name = "LAST_UPDATE_DATE"))})
public class MealModel extends BaseDomain implements Serializable {
	private static final long serialVersionUID = 1L;

	private Long id;

	private Long cardDefId;

	private String code;

	private String name;

	private String description;

	private Byte status;

	private Double price;

	private Integer validPeriod;

	private String unitOfPeriod;

	private Integer isPhysicalCard;

	private Integer isPrepaymentCard;

	private Long numberSequence;
	
	private String memberBenfit;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "CARD_DEF_ID")
	public Long getCardDefId() {
		return cardDefId;
	}

	public void setCardDefId(Long cardDefId) {
		this.cardDefId = cardDefId;
	}

	@Column(name = "CODE")
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	@Column(name = "NAME")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "DESCRIPTION")
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Column(name = "STATUS")
	public Byte getStatus() {
		return status;
	}

	public void setStatus(Byte status) {
		this.status = status;
	}

	@Column(name = "PRICE")
	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	@Column(name = "VALID_PERIOD")
	public Integer getValidPeriod() {
		return validPeriod;
	}

	public void setValidPeriod(Integer validPeriod) {
		this.validPeriod = validPeriod;
	}

	@Column(name = "UNIT_OF_PERIOD")
	public String getUnitOfPeriod() {
		return unitOfPeriod;
	}

	public void setUnitOfPeriod(String unitOfPeriod) {
		this.unitOfPeriod = unitOfPeriod;
	}

	@Column(name = "IS_PREPAYMENT_CARD")
	public Integer getIsPrepaymentCard() {
		return isPrepaymentCard;
	}

	public void setIsPrepaymentCard(Integer isPrepaymentCard) {
		this.isPrepaymentCard = isPrepaymentCard;
	}

	@Column(name = "NUMBER_SEQUENCE")
	public Long getNumberSequence() {
		return numberSequence;
	}

	public void setNumberSequence(Long numberSequence) {
		this.numberSequence = numberSequence;
	}

	@Column(name = "IS_PHYSICAL_CARD")
	public Integer getIsPhysicalCard() {
		return isPhysicalCard;
	}

	public void setIsPhysicalCard(Integer isPhysicalCard) {
		this.isPhysicalCard = isPhysicalCard;
	}

	@Column(name="MEMBER_BENFIT")
	public String getMemberBenfit() {
		return memberBenfit;
	}

	public void setMemberBenfit(String memberBenfit) {
		this.memberBenfit = memberBenfit;
	}

}
